import django_filters
from .models import *


class GeneraFilter(django_filters.rest_framework.FilterSet):
    """过滤器"""

    name = django_filters.CharFilter(lookup_expr='icontains')
    class Meta:
        model = Genera
        fields = '__all__'
